<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RTBF parser</title>

<script language="JavaScript" type="text/javascript">
	var css = "css/estilos.css";
	document
			.write("<link href='" + css + "' rel='stylesheet' type='text/css'>");
	
	<!-- JavaScript function for to check if a value introduced is integer -->
	function onlyNumbersDano(evt){
		var keyPressed = (evt.which) ? evt.which : event.keyCode;
		return !(keyPressed > 31 && (keyPressed < 48 || keyPressed > 57));
	}

	function sendForm(value) {
		if (value == "parse") {
			if (document.getElementById("pages").value=="") {
				alert("You must to introduce an integer");
			} else {
				document.form.action = "FrontController?action=parse";

				document.form.submit();

			}
		}
	}
</script>
</head>
<body>
	<form id="form" name="form" action="" method="POST">
		<div id="content">
			<div id="arribaDcha">
				<fieldset style= width:600px>
					<legend
						style="font-family: Arial, sans-serif; font-size: 18px; color: purple">RTBF
						Parser</legend>

					<table>
						<tr>
							<td class="letra_secundaria" align="left">Culture section</td>
						<tr>
							<td><input type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/cinema" checked />Cinéma<br>

								<input type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/litterature" />Littérature<br>

								<input type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/exposition" />Exposition<br>

								<input type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/scene" />Scène<br> <input
								type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/musique" />Musique<br> <input
								type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/concours" />Concours<br>
								<input type="radio" name="section" id="section"
								value="http://www.rtbf.be/culture/galeries" />Galeries</td>
						</tr>
						<tr>
							<td class="letra_secundaria" align="left">Number of pages to
								parse:</td>
							<td class="letra_secundaria" align="left"></td>
							<td></td>
							<td><input type="text" size="1em" id="pages" name="pages"
								value="" onKeyPress="javascript:return onlyNumbersDano(event)"></td>
						</tr>
						<tr>
							<td class="letra_secundaria" align="left">Precision vs data
								(0.0 - 1):</td>
							<td class="letra_secundaria" align="left"></td>
							<td>
							<td><input type="text" size="2em" id="score" name="score"
								value="0.45"></td>
							<td align="left" class="letra_secundaria"><strong>URL:</strong><input
								id="url" type="text" name="url" value="" size="10"><br>
							</td>
							<td align="left"><input type="button" id="parse"
								value="parse" onclick="javascript:sendForm(this.value);">
							</td>
						</tr>
						<tr>
							<td><a title="See events included" href="eventsIncluded.jsp">See
									events already included</a></td>
						</tr>
					</table>
				</fieldset>

			</div>
		</div>
	</form>
</body>
</html>